import axios from '@/libs/api.request'

export const getSystemSetting = () => {
  return axios.request({
    url: 'get_system_setting',
    method: 'get'
  })
}

export const setSystemSetting = (from) => {
  const data = from
  return axios.request({
    url: 'set_system_setting',
    data,
    method: 'post'
  })
}

export const getSystemLog = ({ pageNum, pageSize }) => {
  return axios.request({
    url: 'get_sys_log',
    params: {
      pageNum,
      pageSize
    },
    method: 'get'
  })
}
